PHY MAKE RIGID BODY DYNAMIC CONVEXES

Takes an object and makes a multi shape rigid body for it from all of its limbs using convex meshes.

  Syntax
phy make rigid body dynamic convexes ID 
phy make rigid body dynamic convexes ID, material
phy make rigid body dynamic convexes ID, file$
phy make rigid body dynamic convexes ID, file$, material
  Parameters

ID
identification number of the 3D object that you want to be represented by a collection of dynamicconvex meshes in the simulation

material
this parameter is optional, a material can be specified if required upon creation, by specifying a material you can have further control over how the object will react with other objects in regard to properties such as its restitution

file$
this parameter is optional and when used the data from the object will be saved out to the specified file, this can be useful for some complex objects as the computational time may be long, this file can later be loaded in much faster using the command phy load rigid body dynamic convexes

  Returns

This command does not return a value.

  Description

This is particularly useful in cases where more complex objects are required than the standard box, sphere and capsule.

Note that this command operates on limbs / meshes in an object so this determines how the object is represented. Having only one limb / mesh in the object will result in only one convex rigid body mesh being created so it is important to ensure the model you are using is set up correctly so in the case of a table make sure each component is a separate limb / mesh within the model hierarchy. As the object is represented by a collection of dynamic convex rigid body meshes it will be moveable and will be affected by forces such as gravity etc.